//Packages for TWFE and plotting
local ssc_packages "reghdfe ftools coefplot"
if !missing("`ssc_packages'") { 
	foreach pkg in `ssc_packages' {
		capture which `pkg' 
		if _rc == 111 {
			dis "Installing `pkg'"
			ssc install `pkg', replace
			}
		which `pkg' 
		}
}

// Jon Roth's Honest DiD package for Rambachan-Roth analysis
capture which honestdid

. if _rc == 111 {
. dis "Installing honestdid"
. net install honestdid, from("https://raw.githubusercontent.com/mcaceresb/stata-honestdid/main") replace
. honestdid _plugin_check
. }

. which honestdid 



